home *** CD-ROM | disk | FTP | other *** search
- PROGRAM filexfer;
-
- { Take lines from an input file and place them in an output file }
-
- CONST
- {$I gemconst.pas }
-
- TYPE
- {$I gemtype.pas }
-
- VAR
- ifile : file of TEXT;
- ofile : file of TEXT;
- istring : STRING;
- ipath : Path_Name;
- iname : Path_Name;
- oname : Path_Name;
-
- {$I gemsubs.pas }
-
- BEGIN
- IF Init_Gem >= 0 then
- BEGIN
- ipath := 'A:\*.*';
- iname := '';
- If Get_In_File( ipath, iname ) THEN
- BEGIN
- RESET( ifile, iname );
- oname := '';
- If Get_Out_File( 'Write to ...', oname ) THEN
- BEGIN
- REWRITE ( ofile, oname );
- WHILE NOT( EOF( ifile )) do
- BEGIN
- READLN( ifile, istring );
- WRITELN( ofile, istring );
- END;
- END;
- END;
- Exit_Gem;
- END;
- END.
-